 package com.cxl.pattern.visitor;
 /*
  * Location: E:\work\eclipse3.6_\workspace\design_pattern\ Qualified Name:
  * com.cxl.pattern.visitor.Node JD-Core Version: 0.6.1
  */
 public class VisitorClient
 {
   public static void main(String[] args)
   {
     ObjectStructure os = new ObjectStructure();
     os.add(new NodeA());
     os.add(new NodeB());
 
     Visitor visitor = new VisitorA();
     os.action(visitor);
 
     visitor = new VisitorB();
     os.action(visitor);
   }
 }

